﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCFoto.BLL;
using System.Collections;
namespace MVCFoto.Web.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
          　// ViewData["Message"] = "Welcome to ASP.NET MVC!";
            //ViewData["AllowedTypes"] = Math.Round(DateTime.Now.TimeOfDay.TotalMilliseconds).ToString();
            if(User.Identity.IsAuthenticated)
                return RedirectToRoute("User",new{userid=BLL.User.MyID});
            else
                return View();

        }

        public ActionResult About()
        {          
           
            return View();
        }
    }
}
